<template>
  <div>
      <div class="nav-box">
        <router-link to="/discover">发现音乐</router-link>
        <router-link to="/my">我的音乐</router-link>
        <router-link to="/friend">关注</router-link>
      </div>
      <!-- 路由出口,一级路由出口 -->
      <router-view />
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
  .nav-box {
    background-color: #242424;
    height: 50px;
    display: flex;
    align-items: center;
  }

  .nav-box a{
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #ccc;
  }

  .nav-box a.router-link-active{
    color: red;
  }
</style>